import http from '../../util/request.js'

export default {
    // 创建交易记录
    create: (transactionData) => {
        return http({
            url: '/visitor/transaction',
            method: 'POST',
            data: transactionData,
            headers: {
                'Content-Type': 'application/json'
            }
        });
    },

    // 获取交易记录分页数据
    page: (params) => {
        return http({
            url: '/visitor/transaction/page',
            method: 'GET',
            params: params
        });
    }
}
